package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.ProductSendOutDetailBatch;
import com.zhijian.medical.entity.vo.request.ProductSendOutDetailBatchSearchVo;
import com.zhijian.medical.entity.vo.response.ProductSendOutDetailBatchVo;

import java.util.List;

public interface ProductSendOutDetailBatchMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ProductSendOutDetailBatch record);

    ProductSendOutDetailBatch selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ProductSendOutDetailBatch record);

    int updateByPrimaryKey(ProductSendOutDetailBatch record);

    int count(ProductSendOutDetailBatchSearchVo productSendOutDetailBatchSearchVo);

    List<ProductSendOutDetailBatchVo> selectList(ProductSendOutDetailBatchSearchVo productSendOutDetailBatchSearchVo);

    ProductSendOutDetailBatchVo selectVoById(Long id);

    /**
     * 汇总一次产品申请的总量
     *
     * @param productId
     * @return
     */
    int sumQuantityByProductId(Long productId);
}